﻿using System;

namespace CloudPms.Common.Utils
{
    /// <summary>
    /// SQL验证时间
    /// </summary>
    public class SqlServerValidDateTime
    {
        /// <summary>
        /// 检查是不是有效的时间
        /// </summary>
        /// <param name="date"></param>
        /// <returns></returns>
        public static bool IsValid(DateTime date)
        {
            DateTime defaultDate = DateTime.Parse("1753/01/01 00:00:00 AM");
            
            if(date>=defaultDate)
            {
                return true;
            }

            return false;
        }
    }
}
